<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="./js/cache.js"></script>
    <script src="./js/hjx-message.js"></script>
    <script src="./js/hjx-promotion.js"></script>
    <title>Document</title>
  </head>
  <body>
    <button onclick="promotionLogin({id: 1, name: '用户一'})">
      登录(用户一)
    </button>
    <button onclick="promotionLogin({id: 2, name: '用户二'})">
      登录(用户二)
    </button>
    <button onclick="promotionExit()">退出登录</button>
    <button onclick="promotion({id: 1, name: '兰州拉面'},10)">
      商品：兰州拉面（推 ¥ 10）
    </button>
    <button onclick="promotion({id: 2, name: '兰州凤梨'},5.2)">
      商品：兰州凤梨（ 推 ¥ 5.2）
    </button>

    <button onclick="promotionJoinBuyer()">将当前商品加入购物车</button>

    <button onclick="promotionSettlement()">结算</button>

    <h2>收益：<span id="income"></span></h2>
    <h2>推广：<span id="promotion"></span></h2>
    <h2>成交：<span id="deal"></span></h2>

    <script></script>
  </body>
</html>
